<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ include file="/pub/includ.jsp"%>
<%
com.wing.cms.domain.Site site = (com.wing.cms.domain.Site)request.getAttribute("site");
%>
<html>
<head>
<script type="text/javascript">
		var save = function(){
			var flag = "failure";
			var options = {
				type: 'POST',
				async: false,
				dataType: 'content-type',
				success: function(msg) {
					flag = msg;
				}
			}
			$('#siteform').ajaxSubmit(options);
			return flag;
		}
		
		function selectUser(oId,oName){
			selUser("{oId:\'"+oId+"\',oName:\'"+oName+"\',width:\'500\',height:\'300\',type:\'one\'}",window);
		}
			
		function changesiteurl(){
			$('#site_url').attr('value',$('#site_path').attr('value')+".wingcms.com");
		}
			
</script>
</head>
<body style="margin:0;height:100%">
<%
	if(site.getSite_path()==null || site.getSite_path().trim().equals("")){
%>
	该网站不可复制！~
<%		
	}else{
%>
<form id="siteform" action="<%=path %>/cms/site/cloneSite" method="post" target="_self">
<table><tr><td height="2px"></td></tr></table>
<table align="center" border="0" cellpadding="0" cellspacing="1" class="table_nbw" >
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">站点名称</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="site_name" name="siteName" value=""></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">站点路径</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" onkeyup="changesiteurl()" id="site_path" name="dest_sitePath" value=""></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">站点访问路径</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="site_url" name="dest_siteUrl" value=""></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">站点管理员</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="sitemgrName" name="sitemgrName" value="">
			<input type="hidden" id="sitemgrId" name="ownerUser" value="">
			<input type="button" onclick="selectUser('sitemgrId','sitemgrName')" value="选择">
		</td>
	</tr>
</table>
<input type="hidden" name="src_sitePath" value="${site.site_path}"/>
</form>
<%			
	}
%>
</body>
</html>


